package com.cloud.pole.user.service;

import com.cloud.pole.api.user.BaseUserApi;

public interface UserService  {
	
	public BaseUserApi userRegister(String mobile, String userName, String verifyCode, String loginPwd, String mobileArea, 
				String openId, String originTag,  int clientType) throws Exception ;
	
	public void modifyLoginPwd(String loginPwd, String newLoginPwd, String token) throws Exception ;	
	
	public void modifyPayPwd(String payPwd, String newPayPwd, String token) throws Exception ;	

	public boolean checkPayPwd(String token, String payPwd) throws Exception;	
	
	public void forgetLoginPwd(String mobile, String mobileArea, String verifyCode, String newLoginPwd) throws Exception ;	
	
	public void forgetPayPwd(String mobile, String mobileArea, String verifyCode, String newPayPwd) throws Exception ;	

	public boolean checkUserExistsByMobile(String mobileArea, String mobile) throws Exception;
	
	public BaseUserApi getUserByMobile(String mobileArea, String mobile) throws Exception;

	public boolean loginOut(String token) throws Exception;
	
	public BaseUserApi getBaseUser(String token) throws Exception;	
	
	public boolean modifyUser(String token, String iconPath, String realName, String sex, String birthday, String provinceId, String provinceName, String cityId, String cityName, String districtId, String districtName, String weixin) throws Exception;

	public BaseUserApi getUserByMarketCode(String marketCode);
}
